<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>天朝企业-首页</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta http-equiv="x-ua-compatible" content="IE=edge">
		<link rel="shortcut icon" href="<%=request.getContextPath()%>/static/common/img/favicon.ico"/>
		<!--确保IE使用最新的渲染模式-->
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/chushihua.css" />
		<!--初始化-->
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/index.css" />
		<!--首页样式-->
		<script src="<%=request.getContextPath()%>/static/js/jquery1.42.min.js" type="text/javascript" charset="utf-8"></script>
		<!--JQ-->
		<script src="<%=request.getContextPath()%>/static/js/jquery.SuperSlide.2.1.1.js" type="text/javascript" charset="utf-8"></script>
		<!--焦点图插件-->
		
		<style>
		.headest{
			
			font-color:white;
			font-size:20px;
			background-color:#f0f0f0;
			width:100%;
		}
		
	</style>
		
	</head>

	<body>
		<!--header-->
		
		<div class="headest" style="font-color:white;">
		<c:if test="${empty talent }">
	<a href="<%=request.getContextPath()%>/view/talent/login.jsp">用户登录</a>|
	<a href="<%=request.getContextPath()%>/view/talent/register.jsp">用户注册</a>|
	</c:if>
	<c:if test="${empty company }">
	<a href="<%=request.getContextPath()%>/view/company/company-login.jsp">企业登录</a>|
	<a href="<%=request.getContextPath()%>/view/company/company-register.jsp">企业注册</a>
	</c:if>
	<c:if test="${!empty company }">
	<span class="pull-right label label-warning">
	<a href="<%=request.getContextPath()%>/CompanyServlet?command=main">${company.name }</a>
	</span>
	</c:if>
	<c:if test="${!empty talent }">
	<span class="pull-right label label-warning">
	<a href="<%=request.getContextPath()%>/TalentServlet?command=main">${talent.name }</a>
	</span>
	</c:if>
</div>
		
		<div class="ding">
			<div class="topImg"></div>
		</div>
		<div class="daohang">
			<a href="##" class="a_left"><img src="<%=request.getContextPath()%>/static/img/logo.jpg" /></a>

			<ul id="nav" class="nav clearfix">
				<li class="nLi">
					<h3><a href="index.html" class="on">首页</a></h3>
				</li>
				<li class="nLi">
					<h3><a href="jianjie.html"  >关于天朝</a></h3>
				</li>
				<form method="post">
				<li class="nLi" >
					<h3><a href="<%=request.getContextPath()%>/view/company/zixun.jsp" >招聘资讯</a></h3>
				</li>
				</form>
				<li class="nLi ">
					<h3><a href="fenxiang.html">招聘咨询</a></h3>
				</li>
				<li class="nLi">
					<h3><a href="zixun.html" >天朝服务</a></h3>
				</li>
				<li class="nLi">
					<h3><a href="zhuankan.html" >天朝资讯</a></h3>
				</li>
				<li class="nLi">
					<h3><a href="lianxi.html" >联系我们</a></h3>
				</li>
			</ul>
		</div>
		<!--header-->
		<div class="clearfix"></div>
		<!--清除浮动-->
		<!--焦点图-->
		<div id="slideBox" class="slideBox">
			<div class="bd">
				<ul>
					<li>
						<a href="" target="_blank">
							<img src="<%=request.getContextPath()%>/static/img/jiao_1.jpg" />
						</a>
					</li>
					<li>
						<a href="" target="_blank">
							<img src="<%=request.getContextPath()%>/static/img/jiao_2.jpg" />
						</a>
					</li>
					<li>
						<a href="" target="_blank"> 
							<img src="<%=request.getContextPath()%>/static/img/jiao_1.jpg" />
						</a>
					</li>
					<li>
						<a href="" target="_blank">
							<img src="<%=request.getContextPath()%>/static/img/jiao_2.jpg" />
						</a>
					</li>
				</ul>
			</div>
		</div>
		<script type="text/javascript">
			jQuery(".slideBox").slide({
				mainCell: ".bd ul",
				autoPlay: true
			});
		</script>

		<!--焦点图-->
		<div class="clearfix"></div>
		<!--清除浮动--->
		<div class="touzi">
			<div class="touzi_left">
				<div class="touzi_top">
					<a href=""><img src="<%=request.getContextPath()%>/static/img/50.png" class="img_lefttop" /></a>
					<div class="touzi_top_right">
						<p><a href="">天朝企业启动新一期人民币旗舰基金募集</a></p>
						<p class="buttom_1"> 中国GDP增速放缓、整体经济增长进入换挡期无疑是今年以来关于中国经济热度最高的话题之一。面对增速放缓、结构调整的新常态的中国经济，投资机构应该如何把握机遇并实现稳健的投资回报？近日，作为九鼎投资新形势下新一期的人民币旗舰基金——九鼎策略股权......</p>
					</div>
				</div>
				<div class="touzi_bottom">
					<ul>
						<li>
							<a href="">
								<img src="<%=request.getContextPath()%>/static/img/title.jpg" /> 天朝企业欢迎各方人士...
								<span>2015-11-09</span>
							</a>
						</li>
						<li>
							<a href="">
								<img src="<%=request.getContextPath()%>/static/img/title.jpg" /> 最全面的招聘网站...
								<span>2015-11-09</span>
							</a>
						</li>
						<li>
							<a href="">
								<img src="<%=request.getContextPath()%>/static/img/title.jpg" /> 最新的招聘咨询...
								<span>2015-11-09</span>
							</a>
						</li>
						<li>
							<a href="">
								<img src="<%=request.getContextPath()%>/static/img/title.jpg" /> 最新的就业形势...
								<span>2015-11-09</span>
							</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="multipleLine" style="margin:0 auto;top:-173px;left:22px;">
				<div class="bd">

					<div class="ulWrap">
						<ul>
							<!-- 把每次滚动的n个li放到1个ul里面 -->
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/1.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/4.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/2.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/3.png" /></a>
								</div>

							</li>
						</ul>

						<ul>
							<!-- 把每次滚动的n个li放到1个ul里面 -->

							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/8.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/2.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/6.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/5.png" /></a>
								</div>

							</li>
						</ul>
						<ul>
							<!-- 把每次滚动的n个li放到1个ul里面 -->
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/10.jpg" /></a>
								</div>
							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/12.jpg" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/33.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/44.png" /></a>
								</div>

							</li>
						</ul>
						<ul>
							<!-- 把每次滚动的n个li放到1个ul里面 -->
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/111.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/222.jpg" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/333.png" /></a>
								</div>

							</li>
							<li>
								<div class="pic">
									<a href="" target="_blank"><img src="<%=request.getContextPath()%>/static/img/444.png" /></a>
								</div>

							</li>
						</ul>
					</div>
					<!-- ulWrap End -->
				</div>
				<!-- bd End -->
			</div>
			<!-- multipleLine End -->

		</div>
		<script type="text/javascript">
			/*
																												多行/多列的滚动解决思路在于：把每次滚动的n个li放到1个ul里面，然后用SuperSlide每次滚动1个ul，相当于每次滚动n个li
																											*/
			jQuery(".multipleLine").slide({
				titCell: ".hd ul",
				mainCell: ".bd .ulWrap",
				autoPage: true,
				effect: "top",
				autoPlay: true
			});
		</script>
		<!--底部-->
		<center>		
	<div class="backdrop" >
				<div class="wrap">
					<h2 class="title clearfix" style="height:15px;">
						<span style="display:block;float:left;margin-left:404px;font-size:25px;color:blue;">热招职位</span>
						 <a href=""class="more" style="display:block;float:right;margin-right:-88px;font-size:20px;color:blue;">更多职位»</a>
					</h2>
					<ul class="hotjob-list clearfix" style="background-color:#f0f0f0;">
						<c:forEach items="${pageModel.list}" var="app">
						<li style="border:1px solid #ffdc35;width:45%;margin-top:10px;margin-left:83px;color:#2894ff;background:url(<%=request.getContextPath()%>/static/common/img/0.jpg);background-size:608px 111px;">
						<div style="margin-left:-135px;">
							<div class="job-info">
								<p class="job-title">
									<a data-placement="top" title="点击查看此职业信息"
							href="<%=request.getContextPath()%>/PositionServlet?command=detail&positionId=${app.id}">${app.name}</a>
								</p>
								<p class="company-name">
									<a title="${app.companyName}"  href="${ctx }/CompanyServlet?command=toCompanyInfo&companyId=${app.companyId}"
										htarget="_blank">${app.companyName}</a>
								</p>
								<span>发布时间：${app.releaseTimeStr}</span>
							</div>
							<p class="job-salary">￥${app.salary1}-${app.salary2}</p> 
								</a>
								</div>
						</li>
						</c:forEach>
					</ul>
					</center>
					<c:choose>
			<c:when test="${pageModel.totalPages <= 10 }">
				<c:set var="begin" value="1" />
				<c:set var="end" value="${pageModel.totalPages }" />
			</c:when>
			<c:otherwise>
			<%-- 当总页数>10时，通过公式计算出begin和end --%>
			<c:set var="begin" value="${pageModel.pageNum-5 }" />
				<c:set var="end" value="${pageModel.pageNum+4 }" /> 
				<c:if test="${begin < 1 }">
				<c:set var="begin" value="1" />
				<c:set var="end" value="10" />
				</c:if> 
				<c:if test="${end > pageModel.totalPages }">
				<c:set var="begin" value="${pageModel.totalPages - 9 }" />
				<c:set var="end" value="${pageModel.totalPages }" />
				</c:if> 
				</c:otherwise>
					</c:choose>
			<%-- 循环遍历页码列表 --%>
			<center>
			<nav><ul class="pagination">
			 <li class="booo" <c:if test="${pageModel.pageNum eq 1}"> class="disabled"</c:if>><a href="<%=request.getContextPath()%>/PositionServlet?command=listAllPosition&pageNum=1"><span>-&infin;</span></a></li>
			 <li class="booo1"<c:if test="${pageModel.pageNum eq 1}"> class="disabled"</c:if>><a href="<%=request.getContextPath()%>/PositionServlet?command=listAllPosition&pageNum=${pageModel.pageNum-1}"><span>&laquo;</span></a></li>
			<c:forEach var="i" begin="${begin }" end="${end }">
    		 <li class="booo2"<c:if test="${pageModel.pageNum eq i}">class="active" </c:if>><a href="<%=request.getContextPath()%>/PositionServlet?command=listAllPosition&pageNum=${i }">${i } <span class="sr-only">(current)</span></a></li>
			</c:forEach>	
			 <li class="booo3"<c:if test="${pageModel.pageNum eq pageModel.totalPages}"> class="disabled"</c:if>><a
						href="<%=request.getContextPath()%>/PositionServlet?command=listAllPosition&pageNum=${pageModel.pageNum+1}"><span>&raquo;</span></a></li>
			 <li class="booo4"<c:if test="${pageModel.pageNum eq pageModel.totalPages}"> class="disabled"</c:if>><a
				href="<%=request.getContextPath()%>/Position?command=listAllPosition&pageNum=${pageModel.totalPages}"><span>+&infin;</span></a></li>
			 <li class="booo5"><a>共${pageModel.totalRecords}条记录</a></li>
			</ul>
			</nav>
			<link rel="stylesheet"
	href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
			</center>
				</div>
</div>
		<div class="bottom_dibu">
			<ul>
				<li><a href="">友情链接</a></li>
				<li class="bottom_dibu_"><a href="">北京同创九鼎投资管理股份有限公司 </a></li>
				<li><a href="">友情链接</a></li>
				<li><a href="">友情链接</a></li>
				<li><a href="">友情链接</a></li>
				<li><a href="">友情链接</a></li>
				<li><a href="">友情链接</a></li>
			</ul>
			<p class="line_h">地址：北京市西城区金融大街7号英蓝国际金融中心D座6层 邮编：100033 京ICP备第08003984号 </p>
			<p class="line_h">电话：010-63221100 传真：010-63221188 邮箱：pe@jdcapital.com </p>
			<p class="line_h">昆吾九鼎投资管理有限公司 版权所有 来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a> </p>
		</div>
		<!--底部-->
	</body>

</html>